package cn.edu.njust.epms.service;

import cn.edu.njust.epms.entity.ATRecord;
import cn.edu.njust.epms.common.R;
import cn.edu.njust.epms.common.Resp;
import cn.edu.njust.epms.entity.ATResv;
import cn.edu.njust.epms.entity.UserDetails;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ATService {
    Resp<ATRecord> acidTest(String pid);

    Resp<List<ATRecord>> selectByCondition(R r);

    Resp<ATRecord> updateATResult(ATRecord record);

    Resp<ATResv> acidTestResv(ATResv ar);

    Resp<ATResv> updateATResv(ATResv ar);

    Resp<List<ATResv>> selectResvByCondition(R r);

//    Resp<String> deleteATRecord(ATRecord r);

    Resp<String> deleteATRecord(Integer aId);

    Resp<String> deleteATResv(ATResv r);

    List<UserDetails> selectUdNotAT7day();
}
